package com.nbcio.iot.mapper;

import com.nbcio.common.mybatis.core.mapper.BaseMapperPlus;
import com.nbcio.iot.domain.entity.IotDevice;
import com.nbcio.iot.domain.vo.IotDeviceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备Mapper接口
 */
public interface IotDeviceMapper extends BaseMapperPlus<IotDevice, IotDeviceVo> {

    /**
     * 查询设备列表
     */
    List<IotDeviceVo> selectDeviceVoList(@Param("device") IotDevice device);

    /**
     * 根据分组ID查询设备列表
     */
    List<IotDeviceVo> selectDeviceVoListByGroupId(@Param("groupId") Long groupId);
} 